/*
 * @Author: wwssaabb
 * @Date: 2021-08-16 14:28:10
 * @LastEditTime: 2021-08-16 15:23:28
 * @FilePath: \ts_demo\demo\partial.ts
 */

/*
  type Partial<T>={
    [P in keyof T]?:T[P]
  }

  Partial<T>将T的所有属性变成可选的。
 */
interface Eg1{
  name:string,
  age:number
}

type k=Partial<Eg1>

let a:k={name:'张三'}


export {}